val:<span>@val</span><br>
<ColorPicker @bind-Value="val"></ColorPicker>

@code {
    private string val;
}